Attempt to scan streams when we successfully opened a file.

This is to prevent false positive that would cause early exit but cause a context re-initialisation later.