fix: don't set up exception handlers in cli mode
this is useful if the web application gets instantiated from cli commands. with exception handlers in place, the console didn't output anything, complicating debugging. this is now changed, so that no web exception handlers are installed in cli mode