handle errors in the rawSystem call itself