Ecological suicide in microbes