Fix #210 - Close project before sync