moving connections shutdown to separate thread instead of GUI thread

fixing the crash mentioned here:
http://code.google.com/p/ankidroid/issues/detail?id=1580#c44