Fixed crash when unknown error thrown