All instances of 'pclose' now check for return value != 0.