Put it right after the fail lands as the closing beat of the scene, not under dialogue. For a tech mishap lead in with the Windows XP Error Sound, and if the joke needs a second sting afterwards, follow it with the Womp Womp Fail Sound instead of adding more dialogue.