Replaced misc::log with Exceptions