It's safer if you disconnect in try{} finally{...}