Make it possible to shut down clients and servers in sane ways.