give time for any interrupt handlers to finish