Its done this way to that the "finally" restores the session to the original session