close app after connection failed