Service check did not exit properly from nagios plugin in perl

i’m setting up v6 on a few internet-facing servers. i’ve googled a bit and found dual-stack ipv4+ipv6 monitoring with nagios. i’ve started using the wrapper script check_v46 referred there and it works nicely. but i’ve run into a problem – execution of plugin gave me: