Man flees courthouse after being sentenced