Cleaning up the terminals