avoid calling the oftplet after closing the session