nsm_client: Init members and add return value for processEvent