Added disconnect event

Added disconnect event and some forgotten ":"