Issue #107: Fix timing issues in instrumentation code

Add a small delay before dismissing the autocomplete popdown list.