Make all exceptions serializable