The company closes out a bad week with battered stock and a failed takeover bid .