Reworked the server and client handler threads, an exception no longer exits the loop