Handle ending calls properly.