dlea with players leaving -onclose function