Cleaner exits in non-gui mode