Throttle logging

This stops the graphite handler from killing the logging facility if the graphite server is down for a few minutes (or the connection fails because of any other network problem) and thousands of metrics fail to be sent.

This code should probably be moved to the base `Handler` class so it can be reused by other handlers