in reply to IPC::Open3::Simple closes database connection on error.

You might be able to get around this problem by using
$ipc->run("/bin/sh your-command")
or use some other program which will always exist to exec your command.