repair creating handle_connection threads, more exception handling in handle_connection