change logging priority of some messages
simplify nested try-catch block