Fixed a problem with the problem generator crashing when daemonized.