Add bios selection and fix a shutdown issue