Separated api:error, api:closed methods
added connector closed handler
update