Fix activity termination within session.