network: notify device disconnected only when it try to connect once

Change-Id: Ib5c26d2aaa54d12e9b383d5b30498c2d09894288