Fix sync bugs due to closed col
Leaving the collection in the closed state at the end of the sync (2337d88) was causing quite a few bugs such as hanging during the sync after first login, and crashing on exporting collection after sanity check error