Moved network printer communication to a separate thread to prevent blocking.