@chipsenkbeil: I spotted a latent bug in here that got fixed as a side effect of this change. For `write_file` and possibly others, reply.try_send was only called in the case where file_id was valid. For an invalid id, I think the caller could hang. Not sure if this was a problem in practice, but I wonder if it might have contributed to some of the weird state issues you mentioned.