removed handleError

replaced with a handler declared for xhr's on close event