Free memory at the end of each pass around the epoll loop.  Also added test for log timestamp