Put it immediately after the failed attempt or bad decision in your edit, then follow it with the sad violin for mock sympathy or Nelson's laugh when the failure is someone else's fault.