Don't crash php by defining a file proeprty on exception.