Fix error handling for file includes.