stop attacking when the popup closes