Bugfix: Dangling file handle to LastSync.txt