fix #19: when account empty, cannot quit normally