Handle unknown file type better.

Before, the exception was uncaught, and just cluttered up the screen.