Close file after writing the init message.