Adding warning suppression for unclosed streams