Suppress warnings for unclosed resources.

Change-Id: Ifc8c46e0c60e9347a50a4594ee4435fc3397ebc3