close() instead of commit(). This needs a test.