Index: trunk/ippScripts/scripts/register_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/register_imfile.pl	(revision 21934)
+++ trunk/ippScripts/scripts/register_imfile.pl	(revision 22420)
@@ -41,4 +41,8 @@
     'logfile=s'        => \$logfile,
 ) or pod2usage( 2 );
+
+# Unhandled exceptions should be passed on to my_die so they get pushed into the database
+$SIG{__DIE__} = sub { die @_ if $^S;
+                      my_die( $_[0], $exp_id, $tmp_exp_name, $tmp_class_id, $uri, $PS_EXIT_UNKNOWN_ERROR ); };
 
 $ipprc->redirect_output($logfile) if $logfile;
