The function waits for completing of current transfers. After function returns check Error property.
(c) Activecrypt Software LLC, 2004-2006