Call API methods before actually ending the player