Fixing race conditions in the shut down of printer and config objects.