Fix for #2279 - added code to wait 5 seconds and clear when task
concludes.