Add metrics for entering and exiting and closing the session in each state.
Add metrics on possible timeouts.
Document metrics in comments.