Exits with a non-zero value (1) on task failure
(cherry picked from commit 8882ab86e7c76f7a2930c3c210e9b3b3d1e73f1f)
Verbose message when image creation fails

* Exits as soon as the image creation fails
* Verbose output when image creation fails
(cherry picked from commit 00c218126b1b1cee3e95ae8c881eed69ad0e88bc)