Fatal Error C1082

Cannot close filetype file: 'file': message

If the message "bad file number" is given, this error may have been caused by closing a file in the foreground while it is being used by a background compilation.