Added exit() after returning the  JSON response as a stray 0 was appearing causing the subscribe message to not display