Changed to DEBUG mode by default; exception handling for timeouts