Refactored to have an independent function to close a connection.
Refactored to have an independent function to close a connection.

SumiTomohiko/fsyscall2,SumiTomohiko/fsyscall2,SumiTomohiko/fsyscall2,SumiTomohiko/fsyscall2,SumiTomohiko/fsyscall2