Correctly disconnect BOSH after connection errors
deleteHandler now deletes Handlers in addHandlers