Fixed issue with the asynchronous socket to close.