Synchronously closes the file.
Throws a FileSystemException if the operation fails.
void closeSync();