Factor loader into a database storer and a batch loader

If something occurs between LoadBatch and LoadDone what state are we left in? The signal handler later in this file only handles SIGINT, what happens if this system receives other signals? The usual case for SIGINT is upstart shutting down the machine, assuming this project is standard we leave 5m for this to happen; what happens if this takes over 5m?