it happened agian but i wasnt on SmileBASIC so maybe its the 3DS squeeze glitch (a misfunction forcing the system off with little pressure on the bottom right area of the system)