Adding error messages in stop method