Fix #3 : unhandled error
cancel watchdog on error, prevent exception
TravisCI: added 'missing' semicolons

Even though ECMAscript does not require them. Oh well, best to be
consistent.
added stateful error reporting

catch all errors, no multi callback
+semicolon
Merge remote-tracking branch 'naggie/master'