Return with exit code 1 on error

Fixes: bug rhbz#916618
Change-Id: I0747aaf1c6e41e650686d1a0ae48d4db44fd5e53