make apps quit when connection dropped