Add an error message if the mode is unable to connect to the backend
Fixed the output tagging so that it can handle tags in the middle of strings