Added option to use quit arguement to exit on a failed check