added logError and cleaned up

added logError to final element in list
removed unnecessary catch (RuntimeException) block