Moved away from exception catching

Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>