Added support for commands that can and can not be run during errors, command that can reset errors, and general error tracking