Stopping the Close button service when close button is pressed