Fixed a bug with adb_file.

This bug broke the (V3.x) bootloader.
The problem was that there was inconsistency in when the client is notified of closure. Now it is always notified, regardless of who initiated the closure.