try try if User.Action = uaMoveForm then User.Remove; except User.PunishHim; end; finally User.Remove; end;