Fix error deadlock

@slimsag can you test please
Why spawn a goroutine? The default statement is enough to not cause deadlocks.