Stops goroutine in ReadPassword properly