Cleanups when suspending/resuming with smcup/rmcup