detect goroutine and memory leaks