Added debugging code for status write failure: