spelling correction in comment and added return statement to socket_exception handler to close the thread