File was no longer throwing an exception in case of failure, while the documentation said it did