Moving the session.Close so that we close it after the consumer has been
disposed