fix #10 disconnect signals before unload