FIX: handle_exception needs a context