Added the proper exception, removed `logger`; I will fix that in pull #234