Fix issues surrounding the failure messages.
Complete the failure handling with the appropriate dart exit code.