When passing a wrong file to the kernFeatureWriter, a long traceback occurs. This could be avoided by testing for the file extension beforehand.