fix race condition when hangup happends after answer indication but before the session thread is started