fix on_disconnect when raise_error is undef