Fixed timestamping of screenshots

Refactored Logger.
Logger will quit on errors