Changed WhisperRunner to close the underlying whisper database when the input channel is closed.

This fixes heka from running out of file descriptors