Fix duplicate log messages + print exception type on failure