Add timeouts and exception logging
chruby compatibility