java/db: Closing the cluster it is in an illegal state.
java/db: Minor change to entities.