pig extension fix return status code check