call unregisterFromServiceEvents() in both server and client. 
removed System.exit(1) from Socket server