Added ability for user programs to handle bcalls, kills thread if not handled