improve logging, fix leaking of time.Afters

Signed-off-by: Simon Leung <leungs@us.ibm.com>