Cleaning up the TCPHandler