Exit immediately if a command exits with a non-zero status

Signed-off-by: Damien Cassou <damien.cassou@gmail.com>