User does an importprivkey with rescan.
User thinks software is hung because the rescan takes a while.
User kills software and restarts.
Some coin is missing because the rescan never finished.
Perhaps importprivkey w/ rescan should set the scanned height in the wallet to 0 before importing the key?