minor safeguards for crash handling on posix
fixed uuid memory leak and improved time-based generation