do not panic if write fails