Added a check for null pointers to avoid nullpointerexception when a
telnet session was connected while the console issued a exit command
Prevented Endpoint from saving SocketService connections in groups.xml,
creating the null pointer on restart when they're not connected.
Removed null check in Socket Service as it shouldn't become null anymore
as the TCP Connection no longer get saved in groups