fix rndaemon not shutting down from SIGTERM on py2.6.5+