catch exception
add logging errors