close should not set id to zero