fixed #277 changed they way exceptions are set when using console mode. Now exceptions are set using the default setException