make sure that on error we exit with value 1