Add a :close() method to string buffer module