Add. handles inherit error flags from loop object.
Fix. memory leak if init function fail for handle.