Adding a stop button to prevent a long wait if transmission fails