I commented out the commit in MailWatch.pm... <snip> sub ExitLogging { # Server exit - commit changes, close socket, and exit gracefully. close(SERVER); #$dbh->commit; $dbh->disconnect; exit; <snip> no problems after that,... -- Test <test at remedial-teacher.nl>