That's weird because the Cooler Master is relatively new and my pc is always hooked to Ups. When I had the random shutdowns, event viewer reported critical power errors (kernel , code 41). Sad thing is we have no warranty or RMA in my country.
Thank you for your response.