When controller stops call endRendering to stop rendering transaction.