disconnection handler added
finish-bug fixed