Made exiting program cleaner.