BREAKING CHANGE: Since version 4.0, the client no longer polls for network
events at shutdown (during object destructor). This behaviour didn't give
enough control to the user in case of server issue, and could cause the script
to hang while terminating.
Starting from 4.0, programs MUST call flush() before shutting down, otherwise
some messages and callbacks may be lost.
- Fix crash during shurtdown (#367, @nick-zh, @sofire)
- Improved CI (@Steveb-p, @arnaud-lb)