fb: add hooks to handle KDB enter/exit