Add detailed logging to detect segfault in PLN BC