Added validation of emulator options and improved emulator startup.