I think I remember this one;

When closing your app, you need to point the printer-object back to the original (default) printer.

Good luck!