Catch corrupt whisper files

organize code a bit better, should still have a filter for whisper file extensions