Heavy rains closed 19 beaches Monday and Tuesday because of concerns over bacteria. After such rainfall, stormwater runoff can sweep bacteria and pathogens into local streams and bays, causing bacterial levels to spike, according to health officials.