Destructs the instance, rolling back the transaction if needed.
The transaction will be rolled back automatically if it is not committed or not rolled back manually.