better handling of printer connection and pausing