If no window matched exit with a non zero status