When you setup a Sonar alert and setup Close as the destination, Sonar will automatically create an activity note associated with the company that triggered the event on Close.
You can also chose to create a lead task in addition to the timeline event.