unpack_callback(): use unpack_failed() consistently