change jquery versin 1.8->2.1.1
close local connection if close event happened