putting disconn in try catch