Fix for context stop while packets are being processed Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>