Modularizing underlying exceptions, right now only does PicklingError, but can easily extend if StreamHandler changes or we encounter some other type of error during encoding that should be appropriately caught and handled similarly (such as with JSON).