more and better error handling WIP

Signed-off-by: Sven Strickroth <email@cs-ware.de>