properly clean up environment if not enough nodes