replace pdb usage with exit + message