Add exception handling to delete.
Add transaction management to destroy function.