proper handling of session interruption