closes #865: Disable timeouts when running under the debug

This works, but will probably generate criticism related to style and semantics etc.

Please let me know what you think.  Thanks.