Close window with srun if waiting for an allocation and while printing
something you also get a signal which would produce deadlock.

Fix Bug 601.