Add 200ms delay before closing to allow final scripts to be processed in case they load more dependencies.