Fix the type of logstashListener so that it can use MonadResource