fix exception handling; configure epc server port; configure log level