Logger includes record to the message
Agent: renamed #shutdown -> #close and #stop -> #shutdown so that Buffer can close itself only after all other plugins shutdown
updated buffer implementation