Fix namespace issue in catching of exception.