Changed shell master to wait for pids to exit before exiting itself.
Changed shell_update to verify that the queue file exists.

[ci skip]