kernel: Add a shutdown message type
kernel: Improve test coverage
Fix supervisord.conf

Non-integer values are sadly not allowed
kernel: Add some comments
tcpserver: Handle exceptions on write