Returning to original state when the printer connection is closed.