Use best practice of closing resources in a finally block. Also, log the error if the file can not be found or some other problem occurs. Contract of the method does not change.