refs #6413 always return a proper return code