Fixed bug with spi flash erase which caused some tasks to not erase. Made it more resistant to errors now