automatically launch/close app when switching to different wireless network