Phone doesnt turn off

My mx5 doesnt respond when i press the button on the right to close the phone. and when i press the middle home button it just vibrates and goes back, instead of going to the main screen.

everything is okay now, i had to press the power off button for a long time(about 9-10) for it to shut down. the i turned it on and everything is okay now it works, but what should i do if this repeats and may not turn on/off again?

Looks like your connection to Meizufans was lost, please wait while we try to reconnect.