If you use on_close, the entity will only be removed on the client and thus it will continue to exist on the server even after the client has left the game.
You need to use EVENT_DISCONNECT as SchokoKeks said to remove the player entity on the server. The removal of the entity will thus be communicated to all the clients automatically and the player will be completely removed on all clients.