Fix Logger.log/2 not to raise on Logger exit
Update Logger mode after configuration

Compute mode after configure as possible mode should change.
#2737: deps.unlock should warn when given missing dependency

Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
Merge pull request #2741 from styx/master

Fixes #2737
Merge pull request #2736 from fishcakez/logger_stopped_exit

Fix Logger.log/2 not to raise on Logger exit