File writing finished