catch exception and log error for user