Add error label to a shell script before exiting.
fixed errors reported by Checkstyle
restore public interface