Avoid crashing in event of a slept-process exiting

The loop as previously seen could crash when a process exits normally
or otherwise while SIGCONTs are being sent.  Just use some of the
machinery from the 'wake' command which takes care of this better.

Signed-off-by: Daniel Farina <daniel@fdr.io>