catch exception, return JSON <- "can not connect", or similar"