Close files after delivery