Trying to figure out how to gracefully handle SIGINT. As it stands, the program just stops without any consideration of whether to finish the buffer while stopping the addition of new entries into the buffer. Fun stuff.