close beatsball fuction