Awesome error handling

+ much amaze

Signed-off-by: Max Reitz <xanclic@niwohlos.org>