Use lazy val for valueType to fix imports
Be even more selective about catching exceptions