shutdown app on error; small makefile fix