catch exceptions, log and return generic error content