Merge pull request #732 from dwightguth/ioexception

remove extraneous io exceptions + improve generic infrastructure for log...
serialize context instead of trying to recreate it