Exit early in case of errors