Modularizing underlying exceptions, right now only does UnpicklingError and (if JSON is used) JSONDecodeError. The JSONDecodeError is only an exception in the stdlib json library, so have to check attributes before adding to the tuple handed to the except block. 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).