trap errors in handlers and log them to memcache for review