Fix FAILURE packet and add deserializer