Close socket after the handle_request function not inside handle_request