Fix error handling

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>
Update version

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>