Fixing issue where screen was not cleared on graceful exits.