fix($error-reporting): log thrown errors

fixes #9
chore($release): release 0.4.0

#9