when connection is closed, stop the player process