Adding exit 1, in case of error