Didn't find the reaper problem, but putting it into it's own thread seems to be working. Also added command line option to set the session timout