more exception handling code

Signed-off-by: Joe Buck <jbbuck@gmail.com>