Making write return the ips measure on failure