Make sure exit routine is always done, but no wait loop if no display