echo error messages when finished