Added some connectivity checking to EnvironmentManager