ensure only one bait session running and handling unhandled exceptions