Dumps statistics to the log file upon SIGUSR1, closes #32.