Logging of exceptions

Conflicts:
	src/jsonlogger.py
Add logging of exceptions