make it safe to call disconnect multiple times
Merge pull request #15 from cxreg/make_disconnect_safe

make it safe to call disconnect multiple times