The callback function didn't execute for the onopen and onclose options.