Do not run cleanup while printing is ongoing.