fixed endCall on logout