make sure we don't open an object while printing