SPI cleanup