There is question about using exit in C++. The answer discusses that it is not good idea mainly because of RAII, e.g., if exit is called somewhere
exit
It is terrible in a big project when any code can exit except for coredump. Trace is very import to maintain a online server.