don't need severity and level
use atexit to remove python callbacks
sort references, exceptions
update terminate cbs
playing
lots more tidying
tidy