rtorrent : avoid hang on shutdown