Is it possible to stop SPI bus and turn MISO, MOSI and SCK pins to INPUTS?

Maybe I should stop trying to help debug this cause I'm really not clear on your setup and code. When you go to (STOP) sleep, the Application Watchdog won't run since FreeRTOS is not running. Are you referring to an external hardware watchdog?