1. fixed server.close_socket