Don't use exit 1 in hosted mode as this is a pain to debug