The current implementation has some issues when used in goroutines see #1276 and #1284 This issue is to track review and possible improvements