Add some exceptions and logging around serializer

Added a serializer exception to raise if the serializer fails, to
replace the generic Exception we raise now.

Added a logging statement to another exit point to provide some
more information

Change-Id: I20d58ce8d9d943f957f491fdf2c01516d3975870