Bug #754. Fixed the memory leaking when device is busy.