new system exit handling