try to delete session, but it may not always be possible