wait for sync to finish, finally closes #1
0.2.2