Made all exception types serializable

Signed-off-by: Martin Evans <martindevans@gmail.com>