Handle possible error in router.vala