On the last floor you can still leave without rescuing all the knights provided you have beaten the battlepod.