fixed exception handling and logging in xmax/common