close local connection if close event happened
recompile coffeescript