Close the sessions before disposing the engines as the engines won't close connections held up in sessions.