I am using MacBookPro12,1 (early 2015 model) and it restarts randomly without any warning. In the log, I found this:
2017-12-14 20:51:50 Previous shutdown cause: 5
2017-12-15 10:37:31 Previous shutdown cause: 5
2017-12-15 12:08:05 Previous shutdown cause: -63
2017-12-15 19:14:19 Previous shutdown cause: 5
2017-12-15 19:42:05 Previous shutdown cause: 5
2017-12-15 20:09:32 Previous shutdown cause: 5
2017-12-15 22:32:39 Previous shutdown cause: -63
2017-12-16 00:08:00 Previous shutdown cause: -63
Any idea what might have caused it? I've looked up the cause code, but it didn't provide me any additional information and I couldn't find anything online.
UPDATE: Now I always get this shutdown problem after closing the lid and opening it again and logging in. It happens every time after 5-10 seconds of doing that.