Made all exceptions serialisable