Terminate running transaction on frame close.

Send DELETE request to server to terminate the transaction.
Rename frame × button from 'Remove' to 'Close'.
Remove commented code.
Check if promise exists before trying to access transaction.
Merge pull request #2869 from oskarhane/tx_termination

Browser: Tx termination