Change test.log save and add exc catching