handling thrown exceptions with domains to prevent server crash