fixed bug with leaking nh-session