Move wait to a look

Putting the thread to sleep with wait no longer allows signals to be captured. This allow signals like USR1 to be used again

Correct Parse error in Worker