eeeeh,Im not good at expressing the English,but I try my best.
In china,both of the examples are correct. At first,if you are in bad position, you feel uncomfortable,or you dont want somebody to bother you. you will use this sentence as a excuse.You met a friend who invited you yesterday,but you hadn't gone.when you come across next day,you can say to your friends :"手机关掉了"
however,the another possible reason is that the battery is died and it turned off by itself. that's a truth . Friends can't phone you.