Yes, I'm using $dbh->disconnect, which is returning 1. I've tried running the script from the server and it executes fine and the process terminates like it should. It's only giving me a problem when IIS is running the process. Does anyone have any idea what this might be?