examples/coredev_test: use CoreCom as a context manager