Refactor transaction handling on startup
Changed the config option for handling transactions on startup from a simple boolean (clear transactions) to an enum ('keep', 'delete', 'rollback') for more granular control. Implemented the 'rollback' logic to revert transactions on startup. Added validation and error logging for the new config value.
```