fix leak: delete entities when destructing level