exit the process if it tries 3 times