slightly improved error handeling

Signed-off-by: Kai Börnert <kai-boernert@visiongamestudios.de>