Made all exceptions serializable