Fix issue where exceptions where unpickling exceptions were not being stored properly