this was moved it til after the SparkEnv was created so that any classes loaded could use the SparkEnv for the securityManager. Specifically ExecutorClassLoader uses it.