in reply to Re^2: "close" failing
in thread "close" failing

Also, the interesting error messages are probably being printed from abc.sh. They should end up in the server's error log. You can use IPC::Open3 to get a handle from which you can read them.