add messageerror
child thread error
fix onMessage bug