Add a close() method

Means you can save() and still be able to add new lines