Actually the exit; does nothing but throw this warning.
...\arduino_modified_sketch_800891\sketch_may17b.ino: In function 'void setup()':
C:\Users\DaD\AppData\Local\Temp\arduino_modified_sketch_800891\sketch_may17b.ino:9:11: warning: statement is a reference, not call, to function 'exit' [-Waddress]
exit;
^
...\arduino_modified_sketch_800891\sketch_may17b.ino:9:11: warning: statement has no effect [-Wunused-value]
The exit(0) function would exit loop, disable interrupts and freeze.