also throw IOError upon file save