You are experiencing the time it takes the ImageWriter to release after the connection to the computer is lost. Your problem is that the "PR#0" command just changes the mode of the computer; the printer still thinks the first computer should be there.
The printer has a built-in timeout that can't be changed. Something you might try is to insert an "ESC c" as line 45. This command resets the printer and might cause the printer to drop its connection before the computer does.
Article Change History:
17 Feb 1997 - Reviewed for technical accuracy, revised formatting.