Readded the connection lost handler and gui popup. Changed some core behavior in the process. Got rid of static methods and added a GetInstance() method.