oops, forgot to close file descriptor after writing