Adding error handing to socket close