This error path would probably benefit from logging an error and exit code?