Made the transaction rollback on error!