added timeouts to worker connection, changed default to 10s timeout.
added missing worker invocation parameter, fixed infinite timeout behavior
switched worker timeouts from ms to seconds for consistency