Add exception consistency tests for onclose tx behavior.