added exceptions tracking to pi_receive.py