Close entity