Wait for removeAccount to finish. Fix #5