All applications using liby2 library share a common main function. The function handles the exit codes in the following way.
The exit codes are described in exitcodes.h header file. A special handling is applied to the value returned from the client.