Fixed but where spawn close event callback was erroring