delete all splits of a transaction

When delete an account, delete all splits in related transactions.

In response to #242 .
endTransaction in finally clause. It will be executed before control is returned to caller function.