Actually stop proxy in case of error.