Create statistics file and service folder strictly only after successful connect