Added a stop button and display error messages (#263)