NXP-13148: clean up and stop using LocalSession