Added error callbacks for exec()