fixed deinitialisation bug where spidev_fd was not set to none