WDT. Watch Dog Timer. This is one of the config settings. Look at the PICs data sheet.
You do not need the BS2 stuff with SEROUT2 or HSEROUT. In fact, being you still have that in you code might be causing some of the trouble. Not sure though.