try/catch around compile call to prevent process crashes

Also log out the esnext error.  This allows karma watch
to continue running so you dont have to restart it when
making a syntax error.