Fixed errors with socket manager.