clean process for session