Send QUIT on all bots when either SIGTERM or SIGINT is received

This will also freeze the buffers from getting new data, it'll
finish writing all the buffers out, properly disconnect them
and exit afterwards.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>