Try rebuilding the PS4's database via the safe mode menu.
Internet connection could be a factor whilst your PS4 is shutting down it is uploading save data if you have a PS+ subscription.A friend of mine with a slow internet connection has found logging out instead of switching off will force the save data to upload,after a minute he'll switch off completely this avoids the triple beep shutdown.