More logging

Added logging for Agent and Worker communication events.
@intern-felicco @abnanda1 @davidfowl 
Log failure as well.