Ensure we don't leak filehandles.

  These leaks are relating to mail_filter and display_filter,
 rather than the limit which is a problem in #124.