Invalid file type should produce non-fatal error.

Fixes issue #11.