log dbms_output in case of exceptions