typo and fix
fix goroutine leak and add some assertsions for such leaks