Adding broadcast receiver to be notified on connection lost