Handle interrupt on publisher and subscriber