changing guarantee to exception in extproc code