Deserializing of messages step needs to occur before callback invocation step, fixes #2451