Wrap function outside of the loop
Fix function name
Don't setup alarm if timeout is 0

Just in case a wrapped function wants to be used in a thread, where alarms are not allowed.
Proper error message for RegisterException
Fix docker invocation name
Improve checking of worker's health