fixed a reconnect bug I had created when adding to close_socket