make sure the project cannot be closed when contracts are still active