Checks if file exists and quits if it does