Bug fixed: was ignoring file after connection drop