exit(0) function shows up an error
The AVR library documentation for exit() is great help. It explains that the interrupts are turned off and an infinite loop is entered. As the interrupts get turned off the last characters in the Serial buffer are not transmitted. 

You can use Serial.flush() to wait for the transmission to complete before calling exit(). 

Cheers!