postpone the connection teardown notification only when the connection state become closed

Change-Id: If5ef3346231aaad738f7e7567acf79da2b5b67d5
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>