Exit with non-zero return-code if any errors

Change-Id: I4bf9e45f8e1d49f480fa8039b218b9dccaeb2829