Fix double firing of close event when explicitly closing a socket