Can't you call DBMS_SESSION.RESET_PACKAGE somehow?