Fix FatalErrorException on throw Exception